package org.ch00.test;

import org.ch00.Entity.Phone;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class test01 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("123");
        list.add("456");
        list.add("789");
        Phone phone = new Phone(
                "华威",
                1000,
                "01",
                list
        );
        phone.Internet();
        phone.message("123", "hello");
        phone.message("111", "hello");
    }
}
